{	var currentComp = app.project.activeItem;	var selectedLayers = currentComp.selectedLayers;	var frameDuration = currentComp.frameDuration;	var layerToSlice = {};	//Find the marker null layer	var markerNull = currentComp.layer("Marker Null");	//Go through each of the selected layers and split them based	//upon the marker positions on the markerNull	function addSlice(t, l)	{		var dup;		//Duplicate the layer		dup = l.duplicate();				//Set the out point of the first layer		l.outPoint = t;				//Set the in point of the next layer		dup.inPoint = t;		return dup;	}	//Main Loop	app.beginUndoGroup("Slice Layer By Markers");	for(var i=0; i<selectedLayers.length; i++)	{		layerToSlice = selectedLayers[i];		//Go through each of the markers for this layer		for(var m=1; m<=markerNull.property("Marker").numKeys; m++)		{				layerToSlice = addSlice(markerNull.property("Marker").keyTime(m), layerToSlice);		}	}	app.endUndoGroup();}